#include<iostream>
using namespace std;

int main()
{
	int x;
	cin >> x;
	if(x == 1 || x == 3 || x == 5)
	{
		cout << "NO" << endl;
	}
	else
	{
		cout << "YES" <<endl;
	}
	return 0;
}
